import request from './request'

export function search(data) {
  return request({
    url: 'share/platform-service/permission/search',
    method: 'post',
    data
  })
}
export function getById(params) {
  return request({
    url: 'share/platform-service/permission/Id/'+params,
  })
}

export function saveOrUpdate(data,action) {
  return request({
    url: 'share/platform-service/permission/'+action,
    method: 'post',
    data
  })
}
export function deleteData(data) {
  return request({
    url: 'share/platform-service/permission',
    method: 'delete',
    data
  })
}

export function getUIPermission(params) {
  return request({
    url: 'share/platform-service/permission/UIPermission/'+params,
  })
}

export function getButtonPermissions(params) {
  return request({
    url: 'share/platform-service/permission/getUserButtonPermissionsByUserId',
    params
  })
}

